/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kpi.dss;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class TimeSeries {

	private List<Double> data = new ArrayList<Double>();
	private String name;

	public TimeSeries(String name, List<Double> data) {
		this(name);
		this.data = data;
	}

	public TimeSeries(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public List<Double> getData() {
		return data;
	}

	public Double getItem(int index) {
		return data.get(index);
	}

	public void setData(List<Double> data) {
		this.data = data;
	}

	public int getSize() {
		return data.size();
	}

	public Iterator iterator() {
		return data.iterator();
	}
}
